const express=require('express');
const jianlibiao = require('../uilit/mysql');
const jilixiangqing=express.Router();

jilixiangqing.post('/jianlimuban',(req,res)=>{
    console.log(1)
    console.log(req.body.qiuzhizheId);
    const qiuzhizheId = req.body.qiuzhizheId;
    const sql =`SELECT * FROM seeker WHERE s_id=${qiuzhizheId};`;
    const sqlT =`SELECT * FROM resumea WHERE s_id=${qiuzhizheId};`;
    console.log(sql)
    console.log(sqlT)
    jianlibiao.query(sql,(err,data)=>{
        if(err){
            
            res.send({kill:1,msg:err})
        }else{
           jianlibiao.query(sqlT,(err2,data2)=>{
               if(err2){
                res.send({kill:1,msg:err2})
               }else{
                console.log(1);
                res.send({kill:0,msg:'输出成功',data:data,data2:data2})
               }
           })
        console.log(123)
        }
    })
})
module.exports=jilixiangqing;